package chapter4;

import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;

public class MouseKeyMain extends ApplicationWindow{

	public MouseKeyMain() {
		super(null);
	}
	
	@Override
	protected Control createContents(Composite parent) {
		@SuppressWarnings("unused")
		MouseKey mk = new MouseKey(parent);
		return parent;
	}
	
	public static void main(String[] args) {
		MouseKeyMain mkm = new MouseKeyMain();
		mkm.setBlockOnOpen(true);
		mkm.open();
		
		Display.getCurrent().dispose();
	}
	
}
